package com.aaa.ss.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyLBRule {
    /**
     * 指定我们的负载均衡方式
     * @return
     */
    @Bean
    public IRule iRule(){
        return new RandomRule();
    }
}
